package com.Tradition.common.http;

/**
 * Created by 伟大的萝莉控 on 2018-06-19.
 */
public enum HttpResultEnum {
    SUCCESS(0,"成功"),
    FAILURE(-1,"失败"),
    PARAM_ABNORMAL(-1,"失败"),
    Exception(-888,"系统异常"),

    USERNAME_FORMAT_ERROR(100,"用户名格式错误"),
    USERNAME_EXIST(101,"用户名已存在，请更换注册用户名"),
    PASSWORD_FORMAT_ERROR(102,"密码格式错误"),
    PASSWORD_ERROR(103,"密码错误"),
    VERIFICATIONCODE_ERROR(104,"验证码错误");



    int code;
    String msg;
    HttpResultEnum(int code, String msg){
        this.code=code;
        this.msg=msg;
    }
    public int getCode() {
        return code;
    }

    public HttpResultEnum setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public HttpResultEnum setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
